<!--{template common/header}-->
<div class="wpui_forumbanner">
    <div class="wpui_wrapper">
        <div class="wpui_discuz_topboxnav"><!--{hook/index_status_extra}--></div>      
        <h2>{$lang['wpui_bbs']}</h2>        
		<!--{if empty($gid)}-->
			<div id="chart" class="wpui_charttop">
				<p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
				<div class="y">
					<!--{hook/index_nav_extra}-->
					<!--{if $_G['uid']}--><a href="forum.php?mod=guide&view=my" title="{lang my_posts}" class="xi2">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><!--{if $_G['uid']}--><span class="pipe">|</span><!--{/if}--><a href="forum.php?mod=guide&view=new" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
				</div>
			</div>
		<!--{/if}-->
    </div>
</div>
<!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
<div class="wpui_content bgf9">
    <div class="wpui_wrapper">
    	<div class="wpui_ltmenu">
	        <ul>
	        	<!--{loop $catlist $key $cat}-->
	            <li><a href="javascript:;">$cat['name']</a></li>
	            <!--{/loop}-->
                <!--{if empty($gid) && !empty($forum_favlist)}-->
                <!--{eval $forumscount = count($forum_favlist);}-->
                <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->
                <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
                <li><a href="javascript:;">{lang forum_myfav}</a></li>
                <!--{/if}-->
	        </ul>
        </div>
    </div>    
</div>
<!--{hook/index_followcollection_extra $colletion['ctid']}-->
<div class="wpui_content ovh mgb30">
    <div class="wpui_wrapper">
            <!--{hook/index_top}-->
            <!--{hook/index_catlist_top}-->
            <!-- main forumlist start -->
            <div class="wpui_forum_cont">
                <div class="wpui_forum_bd">
                    <!--{hook/index_favforum_extra $forum['fid']}-->
                    <!--{loop $catlist $key $cat}-->
                    <div class="wpui_forum_box">
                        <ul>
                            <!--{loop $cat[forums] $forumid}-->
                            <!--{eval $forum=$forumlist[$forumid];}-->
                            <li>
                                <div class="forum_band_icon">
                                	<a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" target="_blank">
                                    <!--{if $forum[icon]}-->
                                        $forum[icon]
                                    <!--{else}-->
                                        <img src="$_G['style'][styleimgdir]/forum/forum_band.png" alt="$forum[name]" />
                                    <!--{/if}-->
                                    </a>
                                </div>
                                <dl>
                                    <dt><a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" target="_blank">{$forum[name]}</a></dt>
                                    <dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd>
                                    <dd>
									<!--{if $forum['lastpost']}-->
                                    	<a href="forum.php?mod=viewthread&tid=$forum[lastpost][tid]">
                                    		<span>{lang forum_lastpost}：<!--{echo dnumber($forum[lastpost][dateline])}--></span>
                                    		$forum['lastpost']['authorusername']
                                    	</a>
									<!--{else}-->
										{lang never}
									<!--{/if}-->
									</dd>
                                </dl>
                            </li>
                            <!--{/loop}-->
                        </ul>
                    </div>
					
                    <!--{/loop}-->
					<!--{if $favforumlist[$favorite[id]]}-->
                    <!--{eval $favorderid = 0;}-->
                    <div class="wpui_forum_box">
                        <ul>

                            <!--{loop $forum_favlist $key $favorite}-->
                            <!--{eval $forum=$favforumlist[$favorite[id]];}-->
                            <li>
                                <div class="forum_band_icon">
                                    <a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" target="_blank">
                                    <!--{if $forum[icon]}-->
                                    $forum[icon]
                                    <!--{else}-->
                                    <img src="$_G['style'][styleimgdir]/forum/forum_band.png" alt="$forum[name]" />
                                    <!--{/if}-->
                                	</a>
                                </div>
                                <dl>
                                    <dt><a href="forum.php?mod=forumdisplay&fid={$forum['fid']}" target="_blank">{$forum[name]}</a></dt>
                                    <dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd>
                                    <dd>
                                    <!--{if $forum['lastpost']}-->
                                        <a href="forum.php?mod=viewthread&tid=$forum[lastpost][tid]">
                                            <span>{lang forum_lastpost}：<!--{echo dnumber($forum[lastpost][dateline])}--></span>
                                            $forum['lastpost']['authorusername']
                                        </a>
                                    <!--{else}-->
                                        {lang never}
                                    <!--{/if}-->
                                    </dd>
                                </dl>
                            </li>
                            <!--{/loop}-->
                        </ul>
                    </div>
					
                    <!--{/if}-->

                </div>
                <script type="text/javascript">
                    jQuery(function(){ 
                    jQuery(".wpui_ltmenu ul li:nth-child(1)").addClass("on")
                    }); 
                    jQuery(".wpui_ltmenu ul li").each(function(s){
                        jQuery(this).click(function(){
                            jQuery(this).addClass("on").siblings().removeClass("on");
                            jQuery(".wpui_forum_bd .wpui_forum_box").eq(s).show().siblings().hide();
                            })
                        })
                </script>
            </div>
            <!-- main forumlist end -->
    
            <!--{hook/index_middle}-->
            <!--{hook/index_catlist $cat['fid']}-->
			<!--{hook/index_favforum_extra $forum['fid']}-->

			<!--{hook/index_forum_extra $forum['fid']}-->
			<!--{hook/index_forum_extra $forum['fid']}-->

			<!--{hook/index_datacollection_extra $colletion['ctid']}-->
            <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
            <div id="online" class="bm oll">
                <div class="bm_h">
                <!--{if $detailstatus}-->
                    <h3>
                        <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
                        <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
                        - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
                        <strong>$guestcount</strong> {lang index_guests}
                        - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
                    </h3>
                <!--{else}-->
                    
                    <h3>
                        <strong>
                            <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
                                {lang onlinemember}
                            <!--{else}-->
                                <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
                            <!--{/if}-->
                        </strong>
                        <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
                        <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
                        - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
                    </h3>
                <!--{/if}-->
                </div>
            <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
                <dl id="onlinelist" class="bm_c">
                    <dt class="ptm pbm bbda">$_G['cache']['onlinelist']['legend']</dt>
                    <!--{if $detailstatus}-->
                        <dd class="ptm pbm">
                        <ul class="cl">
                        <!--{if $whosonline}-->
                            <!--{loop $whosonline $key $online}-->
                                <li title="{lang time}: $online[lastactivity]">
                                <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
                                <!--{if $online['uid']}-->
                                    <a href="home.php?mod=space&uid=$online[uid]">$online['username']</a>
                                <!--{else}-->
                                    $online['username']
                                <!--{/if}-->
                                </li>
                            <!--{/loop}-->
                        <!--{else}-->
                            <li style="width: auto">{lang online_only_guests}</li>
                        <!--{/if}-->
                        </ul>
                    </dd>
                    <!--{/if}-->
                </dl>
            <!--{/if}-->
            </div>
            <!--{/if}-->
            <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
            <!--{/if}-->
            <!--{hook/index_bottom}-->
            <!--{hook/index_side_top}-->
            <div class="drag">
                <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
            </div>
           
            
            <!--{hook/index_side_bottom}-->
    </div>
</div>

<!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->

    		  	  		  	  		     	 				      		   		     		       	   			    		   		     		       	  	  	    		   		     		       	   		     		   		     		       	 			  	    		   		     		       	 			  	    		   		     		       	  		      		   		     		       	  	 	     		   		     		       	  		 	    		   		     		       	  				    		   		     		       	 				 	    		   		     		       	  		      		   		     		       	  	 	     		   		     		       	  		      		   		     		       	  	  	    		   		     		       	 				      		   		     		       	  	 	     		   		     		       	  				    		   		     		       	  	 		    		   		     		       	   			    		   		     		       	  		 	    		   		     		       	  			     		   		     		       	 				 	    		   		     		       	 				 	    		   		     		       	 			  	    		   		     		       	 				 	    		   		     		       	 				 	    		   		     		       	 				 	    		   		     		       	  				    		   		     		       	  	  	    		   		     		       	 			  	    		   		     		       	  	       		 	      	  		  	  		     	
<!--{template common/footer}-->